const mongoose = require("./db");

const cartSchema = new mongoose.Schema({
    // 设定的集合的结构
    cartId: {type:String},
    userId: {type:String},
    proData: {type:Array},
    time: {type:Number}
})

// [{商品信息+数量+选中状态},{},{},{}]

module.exports = mongoose.model("carts", cartSchema);

